import domain.Chapter;
import org.junit.jupiter.api.Test;
import service.BookService;
import service.impl.BookServiceImpl;

import java.util.Date;

public class BookServer {
    BookService bs = new BookServiceImpl();

    @Test
    public void test(){
        System.out.println(bs.getBookbybid(789));
    }
    @Test
    public void delWord(){
        bs.delBookWord(0);
    }

    @Test
    public void addChapter(){
        //        int cid, int bid, String name, String content, Date updatedTime

        bs.addChapter(new Chapter(-1,1,"name","content",new Date()));
    }
}
